package com.novel.entiy;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author tanghao
 * @date 2022/4/8
 */
@ApiModel(value = "com-novel-entiy-Classify")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "classify")
public class Classify {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "")
    private Integer id;

    /**
     * 分类名称
     */
    @TableField(value = "classify_name")
    @ApiModelProperty(value = "分类名称")
    private String classifyName;

    /**
     * 分类图标
     */
    @TableField(value = "classify_image")
    @ApiModelProperty(value = "分类图标")
    private String classifyImage;

    public static final String COL_ID = "id";

    public static final String COL_CLASSIFY_NAME = "classify_name";

    public static final String COL_CLASSIFY_IMAGE = "classify_image";
}